<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>需求</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="svm.setup.html">« 安装/配置</a></li>
      <li style="float: right;"><a href="svm.installation.html">安装 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="svm.setup.html">安装/配置</a></li>
    <li>需求</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="svm.requirements" class="section">
  <h2 class="title">需求</h2>
  <p class="para">
   Libsvm itself is required, and is available through some package 
   management - libsvm-devel for RPM based system or libsvm-dev for 
   Debian based ones. Alternatively it is available direct from the website. 
   If installing from the <a href="http://www.csie.ntu.edu.tw/~cjlin/libsvm" class="link external">&raquo;&nbsp;official website</a> 
   then some steps will need to be taken as the package does not install 
   automatically. For example, assuming the latest version is 3.1:
  </p>
  <div class="example-contents screen">
<div class="cdata"><pre>
wget http://www.csie.ntu.edu.tw/~cjlin/cgi-bin/libsvm.cgi?+http://www.csie.ntu.edu.tw/~cjlin/libsvm+tar.gz 
tar xvzf libsvm-3.1.tar.gz 
cd libsvm-3.1
make lib 
cp libsvm.so.1 /usr/lib 
ln -s libsvm.so.1 libsvm.so 
ldconfig 
ldconfig --print | grep libsvm
</pre></div>
  </div>

  <p class="para">
   This last step should show libsvm is installed.
  </p>
 </div></div></div></body></html>